package com.COMP3111H.project;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class Splash extends Activity {
	protected int _splashTime = 4000; // time to display the splash screen in ms

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.splash);
		
        new Handler().postDelayed(new Runnable(){

            public void run() {
                Intent myIntent = new Intent(Splash.this, Home.class);
                startActivity(myIntent);
                    Splash.this.finish();
            }
              
           }, _splashTime);
       } 
		

}
